﻿@using BIPorter.Common.Model
@model IEnumerable<MeunModel>
 <div id="meun">
     <div class="menuTitle">@Html.ActionLink("主  页","Default","Home")</div>
           <ul id="mainUl">
           @{if(Model.Any()){
               
           foreach (var item in Model)
           { 
               <li class="topLi">
                  <p class="TopNode" isShow="true"><span url="@item.MeunUrl" id="Parent_@item.Id">@item.DisplayName</span></p> 
                   <ul class="childUl">
                   @if (item.ChildMenus.Any())
                   {
                       foreach (var child in item.ChildMenus)
                       { 
                          <li class="childNode"> <span url="@child.MeunUrl" parentId="@item.Id">@child.DisplayName</span> 
                          </li>
                       }
                   }
                   </ul>
               </li> 
            }
           }else{
             <li>无可用菜单</li>
             }
             }
          </ul>
</div>